const config = {
    development: {
        host: '182.160.6.140',
        user: 'root',
        password: '123456',
        database: 'binance_klines',
        waitForConnections: true,
        connectionLimit: 10,
        queueLimit: 0
    },
    production: {
        host: '182.160.6.140',
        user: 'root',
        password: '123456',
        database: 'binance_klines',
        waitForConnections: true,
        connectionLimit: 10,
        queueLimit: 0
    }
};

const pool = mysql.createPool({
    host: '127.0.0.1',
    user: 'root',
    password: 'BinanceRoot2023',
    database: 'binance_klines',
    waitForConnections: true,
    connectionLimit: 10,
    queueLimit: 0
});

const remotePool = mysql.createPool({
    host: '182.160.6.140',
    user: 'root',
    password: 'BinanceRoot2023',
    database: 'binance_klines',
    waitForConnections: true,
    connectionLimit: 10,
    queueLimit: 0
});

module.exports = config[process.env.NODE_ENV || 'development']; 